package com.util;

import org.springframework.stereotype.Controller;

@Controller
public class AlipayConfig {

        // 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号,开发时使用沙箱提供的APPID，生产环境改成自己的APPID
        public static String APP_ID = "2021000116698383"; //测试
     //这是沙箱接口路径,正式路径为https://openapi.alipay.com/gateway.do
         public static  String GATEWAY_URL ="https://openapi.alipaydev.com/gateway.do";
           // 商户私钥，您的PKCS8格式RSA2私钥
        public static String APP_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCt9kmbDCMGRznKy+I/vU7w6PEaen+Fy8zBA29bnKovKcYE42l4A7TyoCAN/TwME9t6jt+AZMJDT9RaU+KwWYMxqLAqF/wqgvQnN+pFqJEVm7jIjHScqkqBeA6nCzsn4N7GDUECppdlksQC/4vnDLsGS7lgRaZEyEjctisC0OainCLKOuNXS8o90OwjFCS4rmC4P8WPGnEwfOPOkiQvXlvSwbon/rk1JvHarZqQKlvdLf4PaZIM8V/rFqLq4CacPvLG+IyHEVHaWPt1D1F1nIkxrFrCkNoyiDCKS6MYbT2TcklE/EP2IzRE+r25r0ADl0EDxsXEAwsV5U3ZDlU++gZrAgMBAAECggEAKtLXGcDqGlCMTHzWLESo2ysstwzyuXgK5nS3BAFT75pD8c4dl3qqH5QFcAwnrP1yaQAkytGC9NkA+F9wDWNrpVzWSPZwj/J+sezU0eMGHCCiY1QYHLza7HYmfT6JiG6VyIFYwJNL76gqcmaABRegLpOThbx/iq0XKqX5fo74R4zqJ/UUr5I4oslHdFzs5hPoYqNJRfYpQwwF7AF3JuaQnDC3AAl0uKni1gBvx5habkReXs3LykZYvxowNIhpWvKoh8uo2SpamVQjX8xcwkneF3WA7w3Sq/1QlUx5I+iW2SmBMytlGE7fOD6DQ0/k7SSzZMG4nQ8qNVvb994X/bhOoQKBgQDVLhD7HxwpNiZhv7nKSH9m2tFKCpiVkWVdaXMvXtLuSAMnGm7Rkt3jWKrLhyF/XRWeXKym4o9hcLOpQ2W/YbUmz4U6NNebSzxrSARla1dkdRUgX1kHaPu9ExvpUQk1cQmoc+iU0KaG98guCBeict8wWwBOMnhkLHM3P7zKy50T+wKBgQDQ55jMjRDjpON8w1lRVHL6tpNosbFU6fP7HsmRTMvcMbABJldCcfUXNJIBgt4k3Wst5sA90kPcNjPTgwDjGu3GJtRgYhMP6tVWBTfJxUQCxhYWV59RyFvWhTaCoZTUfNnrsAOjJ6VGaTV9JY3GAzKGyj0/8D70+YDK9cPbWWHcUQKBgFRLJNfHU2FQUhjwsMw1onrPJ1Z5nh/2H/ixy6P9gLZLr0N1BkDELAzLcK2Nv0cXTYcS6goLJ9rFr6TMS51DS1gPUoTThDWZqEhbb7GSojnMug/U4+U0M+Zteenl6xhAnCsJufuuDUrtCzB4brADcBE0yoghGM2zbdN41nPx0yilAoGBAJPSLZcggsDynl5cRMl9/lZV9vzwL9EsMw6Q/ISqWN6Y8jf+D2TfClS/SEl1dweS/hJe481bCdW7LPUQEAKjvXinZURGYcKzov3Zd155DeUAkgSBQCU4p3Omk6nf+FZbekCCLjC3DwZB0C2b8zQYcxpZ5PlnYMUr/+yd91cxakPhAoGARsXwQSQLHq3grRdQTnjPYO6h+9l2yrR9oWULE2ESQ9NC2KTPaeJNb7oVyWqAqUkQBmxBSQDoppjmBfqKvcThrDZJcZBX++iB2fSakCZT4+3pvzrR7P6NYzqOcQB4uHIQc4uBR7G/C44vJM45GMRy7rdmQUog4hNqPWT9fsuYy0U=";

        // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
        public static String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDIgHnOn7LLILlKETd6BFRJ0GqgS2Y3mn1wMQmyh9zEyWlz5p1zrahRahbXAfCfSqshSNfqOmAQzSHRVjCqjsAw1jyqrXaPdKBmr90DIpIxmIyKXv4GGAkPyJ/6FTFY99uhpiq0qadD/uSzQsefWo0aTvP/65zi3eof7TcZ32oWpwIDAQAB";

        // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
        public static String NOTIFY_URL  = "http://localhost:8080/notifyUrl";

        // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问(其实就是支付成功后返回的页面)
        public static String RETURN_URL  = "http://localhost:8080/returnUrl";
        // 签名方式
        public static String SIGN_TYPE  = "RSA2";

        // 字符编码格式
        public static String CHARSET = "UTF-8";

        // 支付宝网关，这是沙箱的网关

    public static  String FORMAT = "JSON";


    }

